package com.lagou.edu.factory;

import com.lagou.edu.utils.ConnectionUtils;

/**
 * @author 赵乾坤
 * @since 2021-12-04 22:58
 * spring创建bean方式 2 静态方法
 */
public class CreateBeanFactory {

    /**
     * xml bean方式2
     * @return ConnectionUtils
     */
    public static ConnectionUtils getInstanceStatic() {
        return new ConnectionUtils();
    }
    /**
     * xml bean方式3
     * @return ConnectionUtils
     */
    public ConnectionUtils getInstance() {
        return new ConnectionUtils();
    }
}
